//---------------------------------------------------------------------------

#ifndef SPR_KONTRH
#define SPR_KONTRH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "cxButtons.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "Shablon_Spr.h"
#include <ActnList.hpp>
#include <DBGrids.hpp>
#include <ExtCtrls.hpp>
#include <Grids.hpp>
#include <Menus.hpp>
#include <DB.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrSPR_KONTR : public TfrShablon_Spr
{
__published:	// IDE-managed Components
	TDataSource *dsSprKontr;
	TDataSource *dsFioMast;
	TLabel *Label1;
	TDBEdit *dbeKOD_KONTR;
	TLabel *Label3;
	TDBLookupComboBox *cbFIO_MAST;
	TDBEdit *dbeFIO_KONTR;
	TLabel *Label2;
	TIBCQuery *dsetSprKontr;
	TIBCQuery *dsetFioMaster;
	void __fastcall AddExecute(TObject *Sender);
	void __fastcall FormKeyPress(TObject *Sender, char &Key);
	void __fastcall SaveExecute(TObject *Sender);
	void __fastcall DeleteExecute(TObject *Sender);
	void __fastcall EditExecute(TObject *Sender);
	void __fastcall sgSpr_TableDblClick(TObject *Sender);
	void __fastcall sgSpr_TableKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeKOD_KONTRKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall dbeFIO_KONTRKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall cbFIO_MASTKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall FormShow(TObject *Sender);
private:	// User declarations
public:		// User declarations
	__fastcall TfrSPR_KONTR(TComponent* Owner);
	void __fastcall TfrSPR_KONTR::Obnovi();
};
//---------------------------------------------------------------------------
extern PACKAGE TfrSPR_KONTR *frSPR_KONTR;
//---------------------------------------------------------------------------
#endif
